﻿using System;

namespace BSharp.Compiler.Emit
{
	public class PushArgument : IntermediateInstruction
	{
		public readonly int Register;

		public PushArgument (int register)
		{
			Register = register;
		}

		public override void Visit (IntermediateCompiler compiler)
		{
			compiler.Compile (this);
		}

		public override string ToString ()
		{
			return String.Format ("PUSH_ARG r{0}", Register);
		}
	}
}

